<extend name="Public/base"/>

<block name="body">
    <div class="container">
        
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->                        
                            <form class="form-horizontal" role="form" action="{:U('CategoryGoods/add')}" method="post">
                               
                              
                                <div class="form-group">
                                        <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 分类名称 <span style="color:#f00;">*</span></label>
                                        <div class="col-sm-9">
                                                <input type="text" name="category_name" value="{$category['category_name']}" class="form-control" />
                                        </div>
                                </div>
                                
                                <div class="form-group">
                                        <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 分类排序 <span style="color:#f00;">*</span></label>

                                        <div class="col-sm-9">
                                                <input type="text" name="sort" value="{:intval($category['sort'])}" class="form-control" />
                                        </div>
                                </div>
                                <div class="form-group">
									<div class="checkbox col-sm-3 col-sm-offset-2">
											
											<label>
											   开启/关闭 <input name="state" class="ace ace-switch ace-switch-7" type="checkbox" <php>if($category && empty($category['status'])){</php><php>}else{</php>checked='checked'<php>}</php> value='1'>
											   
											</label>
											<input type="hidden" name="id" value="{$category['id']}">
											
									</div>
                                </div>
                                <div class="clearfix form-actions">
                                    <div class="col-md-offset-4 col-md-4">
                                        <button class="btn btn-info btn-block ajax-post" target-form="form-horizontal" type="submit">
                                            <i class="icon-ok bigger-110"></i>
                                            确认
                                        </button>
                                    </div>
                                </div>
                            </form>                        
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        
  

</block>
<include file="common_admin:footer" />